#include<iostream>
using namespace std;
int main(){
	int score,excellent=0,pass=0,fail=0;
	do{
		scanf("%d",&score);
		if(score>=85){
			excellent++;
		}else if(score>=60){
			pass++;
		}else if(score>0){
			fail++;
		}
	}while(score>0);
	printf(">=85:%d\n",excellent);
	printf("60-84:%d\n",pass);
	printf("<60:%d\n",fail);
	return 0;
}
